ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






FUNCTION:  CDbl( )

You can determine the expression subtype by using the function VarType( ).


CDbl(Number)

The CDbl function converts any number to the variant of subtype Double.

Converted values can range from
-1.79769313486232E308 to -4.94065645841247E-324 for negative values and 4.94065645841247E-324 to 1.79769313486232E308 for positive values.

Code:
<% anynumber=1234.5 %>
<% =CDbl(anynumber) %>

Output:
1234.5